package cn.iocoder.yudao.module.api.dine.enums;

import cn.iocoder.yudao.framework.business.basic.enums.EnumValuable;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Arrays;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * 菜品属性枚举
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/08/01
 */
@RequiredArgsConstructor
@Getter
public enum DinePrintSupplyTypeEnum implements EnumValuable {
    FeiE(1, "飞鹅"),
    DeLi(2, "得力"),
    XPrinter(3, "芯烨"),
    GPrinter(4, "佳博"),
    ;

    @EnumValue
    private final Integer value;
    private final String name;

    public static DinePrintSupplyTypeEnum getByValue(Integer value) {
        return Arrays.stream(values())
                .filter(item -> item.getValue().equals(value))
                .findFirst().orElse(FeiE);
    }

}
